package com.zyf.pattern.prototype.deep;

import java.io.Serializable;

/**
 * 金箍棒
 * create by yifeng
 */
public class JGB implements Serializable {
    private float height = 100;
    private float d = 10;

    public void big() {
        this.d *= 2; // 直径
        this.height *= 2;
    }

    public void small () {
        this.d /= 2;
        this.height /= 2;
    }
}
